package user.blog;

import java.util.List;
import java.util.Properties;

import user.blog.post.Post;

public interface BlogIF {

	public boolean setTitle(String title);

	public boolean setDescription(String description);

	public Properties getProperties();

	/**
	 * A list with the titles of the sub-blogs.
	 * 
	 * @return
	 */
	List<Blog> getSubBlogs();

	String addSubBlog(String title, String description) throws Exception;

	void removeSubBlog(String title);

	int getNumberOfSubBlogs();

	int getNumberOfAllSubBlogs();

	int getNumberOfPosts();

	int getNumberOfAllPosts();

	String getBlogID();

	List<Post> getAllPosts();

	String addPost(Post post);
	
	void savePosts() throws Exception;

	List<String> getPIDs();

	Post getPostByPID(String pid);

	void removePost(String pid) throws Exception;
}
